<?php

use Illuminate\Support\Facades\Route;

Route::group([
    'prefix'   => 'idoc',
    'auth_app' => '接口文档'
], function () {
    Route::group([
        'auth_group' => '接口文档1'
    ], function () {
//            Route::manage(\Modules\Idoc\Admin\Setting::class)->make();
        Route::get('api/{api}/api', ['uses' => 'Modules\Idoc\Admin\Application@index', 'desc' => '文档设置'])->name('admin.idoc.api');
        Route::get('application', ['uses' => 'Modules\Idoc\Admin\Application@index', 'desc' => '文档设置'])->name('admin.idoc.application');
        Route::get('setting', ['uses' => 'Modules\Idoc\Admin\Setting@handle', 'desc' => '文档设置'])->name('admin.idoc.setting');
        Route::post('setting/store', ['uses' => 'Modules\Idoc\Admin\Setting@save', 'desc' => '保存文档设置'])->name('admin.idoc.setting.save');
        Route::get('application/ajax', ['uses' => 'Modules\Idoc\Admin\Application@ajax', 'desc' => '保存文档设置'])->name('admin.idoc.application.ajax');
        Route::manage(\Modules\Idoc\Admin\Index::class)->make();
    });
});

//Route::group([
//    'prefix'   => 'idoc',
//    'auth_app' => '工具'
//], function () {
//
//});


//Route::pushMiddlewareToGroup("tools",'接口文档');

